#pragma once

#include "Common/AtomicVal.h"
#include "Network/Connector.h"

class Player;
namespace Network {

class TcpSlaveServer;
class HallConnector
	: public Connector
{
public:
	HallConnector(int fd, TcpSlaveServer * s, int id, const std::string& ip, UInt16 port);
	~HallConnector();

public:
	void onRecv(UInt16 cmd, int len, void * buf);
	void onDisconnected();
	void onConnected();
};

}